package com.sptpc.qimoxiangmu.controller.request;

import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.sptpc.qimoxiangmu.util.MoneyDeserializer;
import com.sun.istack.NotNull;
import lombok.AllArgsConstructor;
import lombok.Data;
import org.joda.money.Money;

import javax.validation.constraints.NotEmpty;

@Data
@AllArgsConstructor
public class ModelRequest {
    @NotEmpty
    private String model;
    @NotNull
    private long typeId;
    @JsonDeserialize(using = MoneyDeserializer.class)
    @NotNull
    private Money price;


}
